package com.example.web.mapper;

import com.example.web.entity.Admin;
import com.example.web.entity.AdminCopy;
import com.example.web.entity.MyParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.ArrayList;
import java.util.List;

@Mapper
public interface AdminMapper {

    /**
     * @return
     *
     */
    List<Admin> findAll();



    List<Admin> findByParam();
    /**
     * @param
     *
     */
    void save(@Param("admin")Admin admin);

    Admin findByName(@Param("adminName") String adminName);



    void deleteTrue(@Param("id")Integer id);

    void update(@Param("admin")Admin admin);

    Admin findByPk(@Param("id")Integer id);

    List<Admin> findByParam(@Param("param") MyParam param);



    void insertForeach(@Param("admin") List<Admin> list);



}
